package com.andova.glcamera

import android.opengl.GLES30
import androidx.annotation.IntDef

const val DEFAULT_COLOR_FORMAT = GLES30.GL_RGB

const val FRAME_ACTION_LAZY_ALL = -4
const val FRAME_ACTION_LAZY_BUFFER = -3
const val FRAME_ACTION_LAZY_PREVIEW = -2
const val FRAME_ACTION_LAZY_NORMAL = -1
const val FRAME_ACTION_BUFFER = 1
const val FRAME_ACTION_PREVIEW = 2
const val FRAME_ACTION_NORMAL = 3 // buffer + preview

@IntDef(FRAME_ACTION_LAZY_ALL, FRAME_ACTION_LAZY_BUFFER, FRAME_ACTION_LAZY_PREVIEW, FRAME_ACTION_LAZY_NORMAL, FRAME_ACTION_BUFFER, FRAME_ACTION_PREVIEW, FRAME_ACTION_NORMAL)
@Retention(AnnotationRetention.SOURCE)
annotation class FrameAction

const val MSG_EGL_HELPER_WHAT_INIT = 100
const val MSG_EGL_HELPER_WHAT_RENDER = 200
const val MSG_EGL_HELPER_WHAT_RESUME = 300
const val MSG_EGL_HELPER_WHAT_DELAY_TASK = 400

@IntDef(MSG_EGL_HELPER_WHAT_INIT, MSG_EGL_HELPER_WHAT_RENDER)
@Retention(AnnotationRetention.SOURCE)
annotation class HelperMessage